<?php
/**
 * https://gitee.com/Mao02
 * http://www.dazhetu.cn/
 * jay_fun 410136330@qq.com
 * Date: 2018/10/11 0011
 * Time: 21:16
 */

namespace app\common\service;


class Xunsearch
{
    protected $xs;
    public function __construct(string $ini)
    {
        $this->xs = new \XS($ini);
    }

    public function __call($method,$param)
    {
        return call_user_func_array([$this->xs,$method],$param);
    }

    public function __get($name)
    {
        return $this->xs->$name;
    }

    public static function __make(string $ini)
    {
        return new static($ini);
    }
}